
import {axios,get,post} from "./request"


export const ajax = {
    apiTest:(params)=>get("/api/test",params),

    register:params=>post("/api/register",params),

    login:params=>post("/api/login",params),

    sendcaptcha:params=>post("/api/sendcaptcha",params),

    chechcaptcha:params=>post("/api/chechcaptcha",params),

    getUserInfo:params=>post("/api/getusreinfo",params),

    uploadfile:params=>post("/api/uploadfile",params),   // 上传文件
    
    changeuser:params=>post("/api/changeuser",params),   // 上传文件 

    getrolelist:params=>post("/api/rolelist",params),

    roleadd:params=>post("/api/roleadd",params),
    
    roleupdate:params=>post("/api/roleupdate",params),

    useradd:params=>post("/api/useradd",params),  // 添加用户

    getuserlist:params=>post("/api/userlist",params),  // 用户列表 

    userremove:params=>post("/api/userremove",params),

    userupdate:params=>post("/api/userupdate",params),
}